package cn.com.niit.service.impl;


import cn.com.niit.mapper.MerchantMapper;
import cn.com.niit.pojo.Merchant;
import cn.com.niit.service.MerchantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class MerchantServiceImpl implements MerchantService {
    @Autowired
    MerchantMapper mapper;
    @Override
    public void apply(Merchant merchant) {
        mapper.apply(merchant);
    }

    @Override
    public List<Merchant> showAll(Merchant merchant) {
        return mapper.showAll(merchant);
    }


    @Override
    public void fail(String userName) {
        mapper.fail(userName);
    }



    @Override
    public Merchant showOne(String userName) {
        return mapper.showOne(userName);
    }

    @Override
    public void ban(String userName) {
        mapper.ban(userName);

    }

    @Override
    public void unBan(String userName) {
        mapper.unBan(userName);
    }
}